package com.chinaoly.baotou.dao.mapper;


import com.chinaoly.baotou.core.mapper.base.BaseMapper;
import com.chinaoly.baotou.model.AlarmFj;
import com.chinaoly.baotou.model.User;
import com.chinaoly.baotou.model.Users;
import com.chinaoly.baotou.web.vo.GrPhVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author:0xOO
 * @Date: 2018/9/26 0026
 * @Time: 15:20
 */
@Repository
public interface UserMapper extends BaseMapper<Users> {

    User Sel(int id);

    Users queryUser(@Param("phone")String phone,@Param("password")String password);

    Long insertUsers(Users users);

    Users loginStatus(@Param("phone")String phone, @Param("sfzhm")String sfzhm);

    void insertAlarmFjM(AlarmFj alarmFj);

    Long changePassword(Users users);

    Integer queryYjTimeSumByYjId(@Param("yjId") String yjId);

    List<GrPhVo> queryGrList();
}
